<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.HscrollLabel类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_hscroll_label.html">HscrollLabel</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_hscroll_label-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.HscrollLabel类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.HscrollLabel 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_hscroll_label.png" usemap="#awtk.HscrollLabel_map" alt=""/>
  <map id="awtk.HscrollLabel_map" name="awtk.HscrollLabel_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a0b1c54d877a6764aa4c6a77f8a07cc0e"><td class="memItemLeft" align="right" valign="top"><a id="a0b1c54d877a6764aa4c6a77f8a07cc0e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>HscrollLabel</b> (long nativeObj)</td></tr>
<tr class="separator:a0b1c54d877a6764aa4c6a77f8a07cc0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8ad6ffca7a5fe80d0d91e9b0096c28d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#ae8ad6ffca7a5fe80d0d91e9b0096c28d">setLull</a> (int lull)</td></tr>
<tr class="separator:ae8ad6ffca7a5fe80d0d91e9b0096c28d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6f0f6da67b7811c980057bef27aaa94"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#ac6f0f6da67b7811c980057bef27aaa94">setDuration</a> (int duration)</td></tr>
<tr class="separator:ac6f0f6da67b7811c980057bef27aaa94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a774f50ac209f5ebf8b03df3e134b24dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a774f50ac209f5ebf8b03df3e134b24dc">setOnlyFocus</a> (boolean only_focus)</td></tr>
<tr class="separator:a774f50ac209f5ebf8b03df3e134b24dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58d25fce3186552032a4b932ca558a5d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a58d25fce3186552032a4b932ca558a5d">setOnlyParentFocus</a> (boolean only_parent_focus)</td></tr>
<tr class="separator:a58d25fce3186552032a4b932ca558a5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0797a9577115d449ab52befe2ced86d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#ae0797a9577115d449ab52befe2ced86d">setLoop</a> (boolean loop)</td></tr>
<tr class="separator:ae0797a9577115d449ab52befe2ced86d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7eebd34714352c0f8e66e5d5f4547fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#aa7eebd34714352c0f8e66e5d5f4547fd">setYoyo</a> (boolean yoyo)</td></tr>
<tr class="separator:aa7eebd34714352c0f8e66e5d5f4547fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af23445cd9441575ac516aa3d96ca97e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#af23445cd9441575ac516aa3d96ca97e6">setEllipses</a> (boolean ellipses)</td></tr>
<tr class="separator:af23445cd9441575ac516aa3d96ca97e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a497aea694b31f8c4e5e680cd38c54b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a2a497aea694b31f8c4e5e680cd38c54b">setXoffset</a> (int xoffset)</td></tr>
<tr class="separator:a2a497aea694b31f8c4e5e680cd38c54b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af630e5362571bf0542eeb03d84cb0bd5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#af630e5362571bf0542eeb03d84cb0bd5">start</a> ()</td></tr>
<tr class="separator:af630e5362571bf0542eeb03d84cb0bd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad19449aaf97d801154d967a8c36e4a2a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#ad19449aaf97d801154d967a8c36e4a2a">stop</a> ()</td></tr>
<tr class="separator:ad19449aaf97d801154d967a8c36e4a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62eddf0def26cc126684419d7cfe49cd"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a62eddf0def26cc126684419d7cfe49cd">getOnlyFocus</a> ()</td></tr>
<tr class="separator:a62eddf0def26cc126684419d7cfe49cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6960bda11f09f03ac47c0b90b195234"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#af6960bda11f09f03ac47c0b90b195234">getOnlyParentFocus</a> ()</td></tr>
<tr class="separator:af6960bda11f09f03ac47c0b90b195234"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bf8c0fb7603aac9b69410c07a9de8df"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a3bf8c0fb7603aac9b69410c07a9de8df">getLoop</a> ()</td></tr>
<tr class="separator:a3bf8c0fb7603aac9b69410c07a9de8df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a408e28213c57bfe5b519cc33639be7d8"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a408e28213c57bfe5b519cc33639be7d8">getYoyo</a> ()</td></tr>
<tr class="separator:a408e28213c57bfe5b519cc33639be7d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a85f1509f2d003383972b125d5519aafb"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a85f1509f2d003383972b125d5519aafb">getEllipses</a> ()</td></tr>
<tr class="separator:a85f1509f2d003383972b125d5519aafb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab4d579730c687733ca4b5652e37f740"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#aab4d579730c687733ca4b5652e37f740">getLull</a> ()</td></tr>
<tr class="separator:aab4d579730c687733ca4b5652e37f740"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42a0e27d0acd23d3cfe6b663185dd5d8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a42a0e27d0acd23d3cfe6b663185dd5d8">getDuration</a> ()</td></tr>
<tr class="separator:a42a0e27d0acd23d3cfe6b663185dd5d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72586ee7d0bfec8bcd33ac445c9ed69e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a72586ee7d0bfec8bcd33ac445c9ed69e">getXoffset</a> ()</td></tr>
<tr class="separator:a72586ee7d0bfec8bcd33ac445c9ed69e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2236907e9f42b29e449839a9749c07df"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#a2236907e9f42b29e449839a9749c07df">getTextW</a> ()</td></tr>
<tr class="separator:a2236907e9f42b29e449839a9749c07df"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a1c054f8adc7d9bb1d50d679976dafd0c"><td class="memItemLeft" align="right" valign="top"><a id="a1c054f8adc7d9bb1d50d679976dafd0c"></a>
static <a class="el" href="classawtk_1_1_hscroll_label.html">HscrollLabel</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a1c054f8adc7d9bb1d50d679976dafd0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae17affd13dfec222d86f60450c5b3f76"><td class="memItemLeft" align="right" valign="top">static Widget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#ae17affd13dfec222d86f60450c5b3f76">create</a> (Widget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:ae17affd13dfec222d86f60450c5b3f76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af83ba7015001d52021927d85c103e62d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_hscroll_label.html">HscrollLabel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_hscroll_label.html#af83ba7015001d52021927d85c103e62d">cast</a> (Widget widget)</td></tr>
<tr class="separator:af83ba7015001d52021927d85c103e62d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a5cc452a245b80a4b74c22b50a539a272"><td class="memItemLeft" align="right" valign="top"><a id="a5cc452a245b80a4b74c22b50a539a272"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a5cc452a245b80a4b74c22b50a539a272"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>可水平滚动的文本控件，方便实现长文本滚动。</p>
<p>hscroll_label_t是widget的子类控件，widget_t的函数均适用于hscroll_label_t控件。</p>
<p>在xml中使用"hscroll\_label"标签创建行号控件，一般配合mledit使用。如：</p>
<div class="fragment"></div><!-- fragment --><p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mledit.xml">mledit.xml</a></p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span>&gt;</div><div class="line">&lt;<span class="keywordtype">normal</span>   /&gt;</div><div class="line">&lt;<span class="keywordtype">focused</span>  /&gt;</div><div class="line">&lt;/<span class="keywordtype">style</span>&gt;</div></div><!-- fragment --><p>更多用法请参考： <a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml">theme default</a> </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="af83ba7015001d52021927d85c103e62d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af83ba7015001d52021927d85c103e62d">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_hscroll_label.html">HscrollLabel</a> awtk.HscrollLabel.cast </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为hscroll_label对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>hscroll_label对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>hscroll_label对象。 </dd></dl>

</div>
</div>
<a id="ae17affd13dfec222d86f60450c5b3f76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae17affd13dfec222d86f60450c5b3f76">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Widget awtk.HscrollLabel.create </td>
          <td>(</td>
          <td class="paramtype">Widget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建hscroll_label对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a42a0e27d0acd23d3cfe6b663185dd5d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42a0e27d0acd23d3cfe6b663185dd5d8">&#9670;&nbsp;</a></span>getDuration()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.HscrollLabel.getDuration </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>完整的滚动一次需要的时间(ms)，缺省5000ms。 </p>

</div>
</div>
<a id="a85f1509f2d003383972b125d5519aafb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a85f1509f2d003383972b125d5519aafb">&#9670;&nbsp;</a></span>getEllipses()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.HscrollLabel.getEllipses </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>文本显示不下时，在行尾显示省略号(缺省FALSE)。 </p>

</div>
</div>
<a id="a3bf8c0fb7603aac9b69410c07a9de8df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bf8c0fb7603aac9b69410c07a9de8df">&#9670;&nbsp;</a></span>getLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.HscrollLabel.getLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>loop是否循环滚动(缺省FALSE)。 </p>

</div>
</div>
<a id="aab4d579730c687733ca4b5652e37f740"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab4d579730c687733ca4b5652e37f740">&#9670;&nbsp;</a></span>getLull()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.HscrollLabel.getLull </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>滚动之间的间歇时间(ms)，缺省3000ms。 </p>

</div>
</div>
<a id="a62eddf0def26cc126684419d7cfe49cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62eddf0def26cc126684419d7cfe49cd">&#9670;&nbsp;</a></span>getOnlyFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.HscrollLabel.getOnlyFocus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>只有处于focus时才滚动(缺省否)。 </p>

</div>
</div>
<a id="af6960bda11f09f03ac47c0b90b195234"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6960bda11f09f03ac47c0b90b195234">&#9670;&nbsp;</a></span>getOnlyParentFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.HscrollLabel.getOnlyParentFocus </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>只有父控件处于focus时才滚动(缺省否)。 </p>

</div>
</div>
<a id="a2236907e9f42b29e449839a9749c07df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2236907e9f42b29e449839a9749c07df">&#9670;&nbsp;</a></span>getTextW()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.HscrollLabel.getTextW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>文本的宽度。 </p>

</div>
</div>
<a id="a72586ee7d0bfec8bcd33ac445c9ed69e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72586ee7d0bfec8bcd33ac445c9ed69e">&#9670;&nbsp;</a></span>getXoffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.HscrollLabel.getXoffset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>偏移量。 </p>

</div>
</div>
<a id="a408e28213c57bfe5b519cc33639be7d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a408e28213c57bfe5b519cc33639be7d8">&#9670;&nbsp;</a></span>getYoyo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.HscrollLabel.getYoyo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否往返滚动(缺省FALSE)。 </p>

</div>
</div>
<a id="ac6f0f6da67b7811c980057bef27aaa94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6f0f6da67b7811c980057bef27aaa94">&#9670;&nbsp;</a></span>setDuration()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setDuration </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>duration</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置duration。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td>滚动时间(ms)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af23445cd9441575ac516aa3d96ca97e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af23445cd9441575ac516aa3d96ca97e6">&#9670;&nbsp;</a></span>setEllipses()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setEllipses </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>ellipses</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置ellipses。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ellipses</td><td>是否在文本超长时在行尾显示"..."。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae0797a9577115d449ab52befe2ced86d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0797a9577115d449ab52befe2ced86d">&#9670;&nbsp;</a></span>setLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setLoop </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>loop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置loop。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">loop</td><td>是否循环滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae8ad6ffca7a5fe80d0d91e9b0096c28d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8ad6ffca7a5fe80d0d91e9b0096c28d">&#9670;&nbsp;</a></span>setLull()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setLull </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lull</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置lull。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lull</td><td>间歇时间(ms)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a774f50ac209f5ebf8b03df3e134b24dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a774f50ac209f5ebf8b03df3e134b24dc">&#9670;&nbsp;</a></span>setOnlyFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setOnlyFocus </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>only_focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置only_focus。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">only_focus</td><td>是否只有处于focus时才滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a58d25fce3186552032a4b932ca558a5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58d25fce3186552032a4b932ca558a5d">&#9670;&nbsp;</a></span>setOnlyParentFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setOnlyParentFocus </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>only_parent_focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置only_parent_focus。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">only_parent_focus</td><td>是否只有处于focus时才滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2a497aea694b31f8c4e5e680cd38c54b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a497aea694b31f8c4e5e680cd38c54b">&#9670;&nbsp;</a></span>setXoffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setXoffset </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>xoffset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置x偏移(一般无需用户调用)。。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset</td><td>x偏移。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aa7eebd34714352c0f8e66e5d5f4547fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7eebd34714352c0f8e66e5d5f4547fd">&#9670;&nbsp;</a></span>setYoyo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.setYoyo </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>yoyo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置yoyo。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">yoyo</td><td>是否往返滚动。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af630e5362571bf0542eeb03d84cb0bd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af630e5362571bf0542eeb03d84cb0bd5">&#9670;&nbsp;</a></span>start()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>启动(一般无需用户调用)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad19449aaf97d801154d967a8c36e4a2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad19449aaf97d801154d967a8c36e4a2a">&#9670;&nbsp;</a></span>stop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.HscrollLabel.stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>停止(一般无需用户调用)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/HscrollLabel.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
